home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
newsgrp
/
group94a.txt
/
000029_icon-group-sender _Fri Jan 28 20:38:01 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-08-19
|
2KB
Received: by cheltenham.cs.arizona.edu; Sun, 30 Jan 1994 20:20:50 MST
Date: 28 Jan 94 20:38:01 GMT
From: agate!dog.ee.lbl.gov!overload.lbl.gov!lll-winken.llnl.gov!uop!not-for-mail@ucbvax.Berkeley.EDU (William Clark)
Organization: University of the Pacific
Subject: Table look up questions?
Message-Id: <2ibt39$ojg@uop.cs.uop.edu>
Sender: icon-group-request@cs.arizona.edu
To: icon-group@cs.arizona.edu
Status: R
Errors-To: icon-group-errors@cs.arizona.edu
I am working on a project which needs to use a table (or some other
date structure. I'm open for suggestions) for a look-up and translate
function. The key will be a scrambled string of various characters
and the other half (if possible) will be the translated or matching
string.
Example: User inputs: H W <enter>
Output: Hello World
Where "H W" is a key in the table and "Hello World" is the other
half.
My questions are: Is there an algorithm already out there which
I can use to solve this problem? Or can someone write some brief
code which implements loading a table and looking the data up? Also,
If someone could explain "Tags" in the table. Are these used to
restrict look up areas? (i.e. if the above example had a tag of "H"
on the key, would this restrict the look up area to the H's only?)
I should have mentioned, I am new to the ICON programming language and
have placed an order for _The_Icon_Programming_Language_, 2nd ed.
Thanks.
William R. Clark
University of the Pacific
wclark@thor.cs.uop.edu